<?php

/**
* upload_file 模拟文件上传测试类
*/

class upload_file {
	
	public static $userInfo;
	
	public function __construct() {
		//$this->loader();		
	}
	
	protected function loader() {
		
	}
	
	public function index() {
		$url_api = 'https://sm.ms/api/upload?ssl=1';
		$datas = ['post' => ['files' => ['smfile' => './09.jpg']]];
		$res = gather($url_api, $datas);
		echo '<pre>' . var_export($res[0], true) . '</pre>';
	}
}